package org.soretro.portfolio.view
{
	import flash.events.MouseEvent;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class UpdatesItemMediator extends Mediator
	{
		[Inject]
		public var view:UpdatesItemRenderer;
		
		public var youTubeId:String;
		
		override public function onRegister():void
		{
			view.addEventListener( MouseEvent.CLICK, onClick );
		}
		
		protected function onClick(event:MouseEvent):void
		{
//			youTubeId = view.youTubeCode.text;
//			dispatch( new VideoPlayerEvent( VideoPlayerEvent.SHOW_VIDEO, view.youTubeCode.text ) );
		}
	}
}